package com.xihuanjun.healthcode.entity.convert;

import com.xihuanjun.healthcode.entity.User;
import com.xihuanjun.healthcode.entity.dto.UserDTO;
import com.xihuanjun.healthcode.entity.vo.UserVO;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author: 江溪浣
 * @createDate: 2022/10/25 10:50
 * @description:
 */
@Repository
@Mapper(componentModel="spring")
public abstract class UserConvert {

    public abstract UserVO user2VO(User user);

    public abstract  User dto2user(UserDTO dto);
}
